package com.heima.model.user.thread;

import com.heima.model.user.pojos.ApUser;

public class AppThreadLocalUtils {
    private static ThreadLocal<ApUser> threadLocal = new ThreadLocal<>();
    public static ApUser getUser(){
        return threadLocal.get();
    }
    public static void setUser(ApUser apUser){
        threadLocal.set(apUser);
    }
    public static void clean(){
        threadLocal.remove();
    }
}
